home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0799 / 607 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1017 b 

  1. From: schuller@dutiws.TWI.TUDelft.NL (Bart Schuller)
  2. Subject: include file problems
  3. Date: Mon, 8 Nov 1993 10:34:59 +0100 (MET)
  4.  
  5. Hello all,
  6.  
  7. I'm having a nasty problem with the way the MiNTlibs include hierarchy
  8. works. The problem:
  9. When compiling something using 'gcc -I. foo.c', strange things happen
  10. when foo.c includes a file "wait.h" or "compiler.h" . Why? because
  11. "wait.h" usually will include <sys/wait.h>, which in turn does a
  12. #include <wait.h> . At this point the error occurs, because the -I.
  13. option makes gcc include ./wait.h, not /usr/include/wait.h .
  14.  
  15. I think this problem could happen on any UNIX machine when you have a
  16. file ./stdio.h for example, but people don't usually do that.
  17. I think having all these MiNT specific files in /usr/include is the
  18. wrong thing, they should be in /usr/include/sys or /usr/include/mint.
  19.  
  20. Am I the only one having this problem? the ./wait.h example is from
  21. cvs, the ./compiler.h example from ncurses.
  22.  
  23. Bart Schuller                          schuller@dutiws.twi.tudelft.nl
  24.